package util;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class CommonResult {
    private String message="OK";
    private String error;
    private Object data;

    public CommonResult(Object data) {
        this.data = data;
    }

    public CommonResult(String error) {
        this.error = error;
        this.message="NO";
    }
}
